Eclipse Platform
Pre-release 3.0

org.eclipse.ui.views.markers
Class ProblemView

java.lang.Object
  extended byorg.eclipse.ui.part.WorkbenchPart
      extended byorg.eclipse.ui.part.ViewPart
          extended byorg.eclipse.ui.views.markers.internal.TableView
              extended byorg.eclipse.ui.views.markers.internal.MarkerView
                  extended byorg.eclipse.ui.views.markers.ProblemView
All Implemented Interfaces:
IAdaptable, IExecutableExtension, IViewPart, IWorkbenchPart

public class ProblemView
extends org.eclipse.ui.views.markers.internal.MarkerView


Field Summary
 
Fields inherited from class org.eclipse.ui.views.markers.internal.MarkerView
copyAction, deleteAction, focusResources, openAction, pasteAction, propertiesAction, revealAction, selectAllAction, showInNavigatorAction
 
Fields inherited from class org.eclipse.ui.views.markers.internal.TableView
columnLayouts, FILTERS_ACTION_ID, SORT_ACTION_ID
 
Fields inherited from interface org.eclipse.ui.IWorkbenchPart
PROP_TITLE
 
Constructor Summary
ProblemView()
           
 
Method Summary
protected  void createActions()
           
protected  void createColumns(Table table)
           
 void dispose()
          Disposes of this workbench part.
protected  void fillContextMenuAdditions(IMenuManager manager)
           
protected  ColumnLayoutData[] getDefaultColumnLayouts()
           
protected  IDialogSettings getDialogSettings()
           
protected  org.eclipse.ui.views.markers.internal.MarkerFilter getFilter()
           
protected  org.eclipse.ui.views.markers.internal.DialogMarkerFilter getFiltersDialog()
           
protected  org.eclipse.ui.views.markers.internal.IField[] getHiddenFields()
           
protected  String[] getMarkerTypes()
           
protected  String[] getRootTypes()
           
protected  org.eclipse.ui.views.markers.internal.TableSorter getSorter()
           
protected  Object getViewerInput()
           
protected  org.eclipse.ui.views.markers.internal.IField[] getVisibleFields()
           
 void init(IViewSite viewSite, IMemento memento)
          Initializes this view with the given view site.
protected  void initMenu(IMenuManager menu)
           
 void openFiltersDialog()
           
 void saveState(IMemento memento)
          Saves the object state within a memento.
 void setSelection(IStructuredSelection structuredSelection, boolean reveal)
           
protected  void updateFilterSelection(IResource[] resources)
           
protected  String updateSummarySelected(IStructuredSelection selection)
          Retrieves statistical information (the total number of markers with each severity type) for the markers contained in the selection passed in.
protected  String updateSummaryVisible()
          Retrieves statistical information (the total number of markers with each severity type) for the markers contained in the marker registry for this view.
 
Methods inherited from class org.eclipse.ui.views.markers.internal.MarkerView
createPartControl, fillContextMenu, focusSelectionChanged, getVisibleMarkers, handleKeyPressed, handleOpenEvent, initDragAndDrop, initToolBar, refresh, registerGlobalActions, restoreSelection, saveSelection, sorterChanged, updateStatusMessage, updateStatusMessage, viewerSelectionChanged
 
Methods inherited from class org.eclipse.ui.views.markers.internal.TableView
createTable, getAction, getFields, getHeaderListener, getSelectionProvider, getSortDialog, getViewer, initActionBars, initContextMenu, putAction, setFocus, setSelection
 
Methods inherited from class org.eclipse.ui.part.ViewPart
getViewSite, init
 
Methods inherited from class org.eclipse.ui.part.WorkbenchPart
addPropertyListener, firePropertyChange, getAdapter, getConfigurationElement, getDefaultImage, getJobChangeListener, getSite, getTitle, getTitleImage, getTitleToolTip, removePropertyListener, setInitializationData, setSite, setTitle, setTitleImage, setTitleToolTip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.ui.IWorkbenchPart
addPropertyListener, getSite, getTitle, getTitleImage, getTitleToolTip, removePropertyListener
 
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
 

Constructor Detail

ProblemView

public ProblemView()
Method Detail

dispose

public void dispose()
Description copied from interface: IWorkbenchPart
Disposes of this workbench part.

This is the last method called on the IWorkbenchPart. At this point the part controls (if they were ever created) have been disposed as part of an SWT composite. There is no guarantee that createPartControl() has been called, so the part controls may never have been created.

Within this method a part may release any resources, fonts, images, etc.  held by this part. It is also very important to deregister all listeners from the workbench.

Clients should not call this method (the workbench calls this method at appropriate times).


init

public void init(IViewSite viewSite,
                 IMemento memento)
          throws PartInitException
Description copied from interface: IViewPart
Initializes this view with the given view site. A memento is passed to the view which contains a snapshot of the views state from a previous session. Where possible, the view should try to recreate that state within the part controls.

This method is automatically called by the workbench shortly after part construction. It marks the start of the views's lifecycle. Clients must not call this method.

Throws:
PartInitException

saveState

public void saveState(IMemento memento)
Description copied from interface: IViewPart
Saves the object state within a memento.


getDefaultColumnLayouts

protected ColumnLayoutData[] getDefaultColumnLayouts()

getDialogSettings

protected IDialogSettings getDialogSettings()

createActions

protected void createActions()

createColumns

protected void createColumns(Table table)

fillContextMenuAdditions

protected void fillContextMenuAdditions(IMenuManager manager)

getFiltersDialog

protected org.eclipse.ui.views.markers.internal.DialogMarkerFilter getFiltersDialog()

getHiddenFields

protected org.eclipse.ui.views.markers.internal.IField[] getHiddenFields()

getRootTypes

protected String[] getRootTypes()

getSorter

protected org.eclipse.ui.views.markers.internal.TableSorter getSorter()

getViewerInput

protected Object getViewerInput()

getVisibleFields

protected org.eclipse.ui.views.markers.internal.IField[] getVisibleFields()

initMenu

protected void initMenu(IMenuManager menu)

setSelection

public void setSelection(IStructuredSelection structuredSelection,
                         boolean reveal)

updateSummaryVisible

protected String updateSummaryVisible()
Retrieves statistical information (the total number of markers with each severity type) for the markers contained in the marker registry for this view. This information is then massaged into a string which may be displayed by the caller.

Returns:
a message ready for display

updateSummarySelected

protected String updateSummarySelected(IStructuredSelection selection)
Retrieves statistical information (the total number of markers with each severity type) for the markers contained in the selection passed in. This information is then massaged into a string which may be displayed by the caller.

Parameters:
selection - a valid selection or null
Returns:
a message ready for display

getMarkerTypes

protected String[] getMarkerTypes()

getFilter

protected org.eclipse.ui.views.markers.internal.MarkerFilter getFilter()

openFiltersDialog

public void openFiltersDialog()

updateFilterSelection

protected void updateFilterSelection(IResource[] resources)

Eclipse Platform
Pre-release 3.0

Copyright (c) IBM Corp. and others 2000, 2003. All Rights Reserved.